package com.bwie.bargain.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.math.BigDecimal;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

/**
 * 
 * 
 * @author HouDing
 * @email 1398853436@qq.com
 * @date 2022-03-09 20:02:51
 */
@Data
@TableName("bargain")
public class BargainEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 砍价活动编号
	 */
	@TableId
	private Long bargainId;
	/**
	 * 商品id
	 */
	private Long goodsId;
	/**
	 * 砍价开始时间
	 */
	private Integer flag;

	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GTM+8")
	private Date createTime;
	/**
	 * 砍价结束时间
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GTM+8")
	private Date endTime;
	/**
	 * 商品价格
	 */
	private Double goodsPirce;
	/**
	 * 底价
	 */
	private Double floorPrice;
	/**
	 * 砍价规则(刀数)
	 */
	private Integer knifeNum;
	/**
	 * 砍价规则(每刀最多看多少钱)
	 */
	private Double knifePirce;
	/**
	 * 砍价活动描述
	 */
	private String bargainDesc;

}
